package com.zyzd.baseretrofit.net;

import com.zyzd.baseretrofit.bean.remote.ApiResultBean;

import java.util.ArrayList;
import java.util.Map;

import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.PartMap;
import rx.Observable;

/**
 * Created by LZY on 2017/6/26.
 */

public interface UploadApi {
    @POST("filesUpload.do")
//    @Headers({"token:3f8677b4-672e-4300-b965-b062c504d6de"})
    Observable<ApiResultBean<ArrayList<String>>> uploadFile(@Body MultipartBody imgs);


    @POST("filesUpload.do")
    @Multipart
//    @Headers({"token:3f8677b4-672e-4300-b965-b062c504d6de"})
    Observable<ApiResultBean<ArrayList<String>>> uploadFile(@PartMap Map<String, RequestBody> params);
}
